package com.home.security.browser.auth.service;

import com.home.common.framework.core.entity.EntityUtils;
import com.home.security.browser.auth.mapper.SysLoginRecordMapper;
import com.home.security.browser.manager.session.SysLoginRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 * Created by 王大宸 on 2020-10-08 20:36
 * Created with IntelliJ IDEA.
 */
@Service
public class SysLoginRecordServer {
    @Autowired
    private SysLoginRecordMapper loginRecordMapper;

    /**
     * 登录记录
     * @param loginRecord
     */
    public void save(SysLoginRecord loginRecord){
        loginRecord.setId(EntityUtils.getId());
        loginRecordMapper.insert(loginRecord);
    }

}
